home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsgcc139_tar.Z / vmsgcc139_tar / gcc.info-2 < prev    next >
Encoding:
Text File  |  1991-12-18  |  35.9 KB  |  915 lines

  1. Info file gcc.info, produced by Makeinfo, -*- Text -*- from input
  2. file gcc.texinfo.
  3.  
  4. This file documents the use and the internals of the GNU compiler.
  5.  
  6. Copyright (C) 1988, 1989, 1990 Free Software Foundation, Inc.
  7.  
  8. Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12. Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled "GNU General Public License" and "Protect
  15. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  16. original, and provided that the entire resulting derived work is
  17. distributed under the terms of a permission notice identical to this
  18. one.
  19.  
  20. Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled "GNU General Public
  23. License" and "Protect Your Freedom--Fight `Look And Feel'" and this
  24. permission notice may be included in translations approved by the
  25. Free Software Foundation instead of in the original English.
  26.  
  27.  
  28. 
  29. File: gcc.info,  Node: Options,  Next: Installation,  Prev: Boycott,  Up: Top
  30.  
  31. GNU CC Command Options
  32. **********************
  33.  
  34. The GNU C compiler uses a command syntax much like the Unix C compiler.
  35. The `gcc' program accepts options and file names as operands. 
  36. Multiple single-letter options may *not* be grouped: `-dr' is very
  37. different from `-d -r'.
  38.  
  39. When you invoke GNU CC, it normally does preprocessing, compilation,
  40. assembly and linking.  File names which end in `.c' are taken as C
  41. source to be preprocessed and compiled; file names ending in `.i' are
  42. taken as preprocessor output to be compiled; compiler output files
  43. plus any input files with names ending in `.s' are assembled; then
  44. the resulting object files, plus any other input files, are linked
  45. together to produce an executable.
  46.  
  47. Command options allow you to stop this process at an intermediate
  48. stage.  For example, the `-c' option says not to run the linker. 
  49. Then the output consists of object files output by the assembler.
  50.  
  51. Other command options are passed on to one stage of processing.  Some
  52. options control the preprocessor and others the compiler itself.  Yet
  53. other options control the assembler and linker; these are not
  54. documented here, but you rarely need to use any of them.
  55.  
  56. Here are the options to control the overall compilation process,
  57. including those that say whether to link, whether to assemble, and so
  58. on.
  59.  
  60. `-o FILE'
  61.      Place output in file FILE.  This applies regardless to whatever
  62.      sort of output is being produced, whether it be an executable
  63.      file, an object file, an assembler file or preprocessed C code.
  64.  
  65.      If `-o' is not specified, the default is to put an executable
  66.      file in `a.out', the object file `SOURCE.c' in `SOURCE.o', an
  67.      assembler file in `SOURCE.s', and preprocessed C on standard
  68.      output.
  69.  
  70. `-c'
  71.      Compile or assemble the source files, but do not link.  Produce
  72.      object files with names made by replacing `.c' or `.s' with `.o'
  73.      at the end of the input file names.  Do nothing at all for
  74.      object files specified as input.
  75.  
  76. `-S'
  77.      Compile into assembler code but do not assemble.  The assembler
  78.      output file name is made by replacing `.c' with `.s' at the end
  79.      of the input file name.  Do nothing at all for assembler source
  80.      files or object files specified as input.
  81.  
  82. `-E'
  83.      Run only the C preprocessor.  Preprocess all the C source files
  84.      specified and output the results to standard output.
  85.  
  86. `-v'
  87.      Compiler driver program prints the commands it executes as it
  88.      runs the preprocessor, compiler proper, assembler and linker. 
  89.      Some of these are directed to print their own version numbers.
  90.  
  91. `-pipe'
  92.      Use pipes rather than temporary files for communication between
  93.      the various stages of compilation.  This fails to work on some
  94.      systems where the assembler is unable to read from a pipe; but
  95.      the GNU assembler has no trouble.
  96.  
  97. `-BPREFIX'
  98.      Compiler driver program tries PREFIX as a prefix for each
  99.      program it tries to run.  These programs are `cpp', `cc1', `as'
  100.      and `ld'.
  101.  
  102.      For each subprogram to be run, the compiler driver first tries
  103.      the `-B' prefix, if any.  If that name is not found, or if `-B'
  104.      was not specified, the driver tries two standard prefixes, which
  105.      are `/usr/lib/gcc-' and `/usr/local/lib/gcc-'.  If neither of
  106.      those results in a file name that is found, the unmodified
  107.      program name is searched for using the directories specified in
  108.      your `PATH' environment variable.
  109.  
  110.      The run-time support file `gnulib' is also searched for using
  111.      the `-B' prefix, if needed.  If it is not found there, the two
  112.      standard prefixes above are tried, and that is all.  The file is
  113.      left out of the link if it is not found by those means.  Most of
  114.      the time, on most machines, you can do without it.
  115.  
  116.      You can get a similar result from the environment variable;
  117.      `GCC_EXEC_PREFIX' if it is defined, its value is used as a
  118.      prefix in the same way.  If both the `-B' option and the
  119.      `GCC_EXEC_PREFIX' variable are present, the `-B' option is used
  120.      first and the environment variable value second.
  121.  
  122. `-bPREFIX'
  123.      The argument PREFIX is used as a second prefix for the compiler
  124.      executables and libraries.  This prefix is optional: the
  125.      compiler tries each file first with it, then without it.  This
  126.      prefix follows the prefix specified with `-B' or the default
  127.      prefixes.
  128.  
  129.      Thus, `-bvax- -Bcc/' in the presence of environment variable
  130.      `GCC_EXEC_PREFIX' with definition `/u/foo/' causes GNU CC to try
  131.      the following file names for the preprocessor executable:
  132.  
  133.           cc/vax-cpp
  134.           cc/cpp
  135.           /u/foo/vax-cpp
  136.           /u/foo/cpp
  137.           /usr/local/lib/gcc-vax-cpp
  138.           /usr/local/lib/gcc-cpp
  139.           /usr/lib/gcc-vax-cpp
  140.           /usr/lib/gcc-cpp
  141.  
  142. These options control the details of C compilation itself.
  143.  
  144. `-ansi'
  145.      Support all ANSI standard C programs.
  146.  
  147.      This turns off certain features of GNU C that are incompatible
  148.      with ANSI C, such as the `asm', `inline' and `typeof' keywords,
  149.      and predefined macros such as `unix' and `vax' that identify the
  150.      type of system you are using.  It also enables the undesirable
  151.      and rarely used ANSI trigraph feature.
  152.  
  153.      The alternate keywords `__asm__', `__inline__' and `__typeof__'
  154.      continue to work despite `-ansi'.  You would not want to use
  155.      them in an ANSI C program, of course, but it useful to put them
  156.      in header files that might be included in compilations done with
  157.      `-ansi'.  Alternate predefined macros such as `__unix__' and
  158.      `__vax__' are also available, with or without `-ansi'.
  159.  
  160.      The `-ansi' option does not cause non-ANSI programs to be
  161.      rejected gratuitously.  For that, `-pedantic' is required in
  162.      addition to `-ansi'.
  163.  
  164.      The macro `__STRICT_ANSI__' is predefined when the `-ansi'
  165.      option is used.  Some header files may notice this macro and
  166.      refrain from declaring certain functions or defining certain
  167.      macros that the ANSI standard doesn't call for; this is to avoid
  168.      interfering with any programs that might use these names for
  169.      other things.
  170.  
  171. `-traditional'
  172.      Attempt to support some aspects of traditional C compilers. 
  173.      Specifically:
  174.  
  175.         * All `extern' declarations take effect globally even if they
  176.           are written inside of a function definition.  This includes
  177.           implicit declarations of functions.
  178.  
  179.         * The keywords `typeof', `inline', `signed', `const' and
  180.           `volatile' are not recognized.  (You can still use the
  181.           alternative keywords such as `__typeof__', `__inline__',
  182.           and so on.)
  183.  
  184.         * Comparisons between pointers and integers are always allowed.
  185.  
  186.         * Integer types `unsigned short' and `unsigned char' promote
  187.           to `unsigned int'.
  188.  
  189.         * Out-of-range floating point literals are not an error.
  190.  
  191.         * String "constants" are not necessarily constant; they are
  192.           stored in writable space, and identical looking constants
  193.           are allocated separately.
  194.  
  195.         * All automatic variables not declared `register' are
  196.           preserved by `longjmp'.  Ordinarily, GNU C follows ANSI C:
  197.           automatic variables not declared `volatile' may be clobbered.
  198.  
  199.         * In the preprocessor, comments convert to nothing at all,
  200.           rather than to a space.  This allows traditional token
  201.           concatenation.
  202.  
  203.         * In the preprocessor, macro arguments are recognized within
  204.           string constants in a macro definition (and their values
  205.           are stringified, though without additional quote marks,
  206.           when they appear in such a context).  The preprocessor
  207.           always considers a string constant to end at a newline.
  208.  
  209.         * The predefined macro `__STDC__' is not defined when you use
  210.           `-traditional', but `__GNUC__' is (since the GNU extensions
  211.           which `__GNUC__' indicates are not affected by
  212.           `-traditional').  If you need to write header files that
  213.           work differently depending on whether `-traditional' is in
  214.           use, by testing both of these predefined macros you can
  215.           distinguish four situations: GNU C, traditional GNU C,
  216.           other ANSI C compilers, and other old C compilers.
  217.  
  218. `-O'
  219.      Optimize.  Optimizing compilation takes somewhat more time, and
  220.      a lot more memory for a large function.
  221.  
  222.      Without `-O', the compiler's goal is to reduce the cost of
  223.      compilation and to make debugging produce the expected results. 
  224.      Statements are independent: if you stop the program with a
  225.      breakpoint between statements, you can then assign a new value
  226.      to any variable or change the program counter to any other
  227.      statement in the function and get exactly the results you would
  228.      expect from the source code.
  229.  
  230.      Without `-O', only variables declared `register' are allocated
  231.      in registers.  The resulting compiled code is a little worse
  232.      than produced by PCC without `-O'.
  233.  
  234.      With `-O', the compiler tries to reduce code size and execution
  235.      time.
  236.  
  237.      Some of the `-f' options described below turn specific kinds of
  238.      optimization on or off.
  239.  
  240. `-g'
  241.      Produce debugging information in the operating system's native
  242.      format (for DBX or SDB).  GDB also can work with this debugging
  243.      information.
  244.  
  245.      Unlike most other C compilers, GNU CC allows you to use `-g'
  246.      with `-O'.  The shortcuts taken by optimized code may
  247.      occasionally produce surprising results: some variables you
  248.      declared may not exist at all; flow of control may briefly move
  249.      where you did not expect it; some statements may not be executed
  250.      because they compute constant results or their values were
  251.      already at hand; some statements may execute in different places
  252.      because they were moved out of loops.  Nevertheless it proves
  253.      possible to debug optimized output.  This makes it reasonable to
  254.      use the optimizer for programs that might have bugs.
  255.  
  256. `-gg'
  257.      Produce debugging information in the old GDB format.  This is
  258.      obsolete.
  259.  
  260. `-w'
  261.      Inhibit all warning messages.
  262.  
  263. `-W'
  264.      Print extra warning messages for these events:
  265.  
  266.         * An automatic variable is used without first being
  267.           initialized.
  268.  
  269.           These warnings are possible only in optimizing compilation,
  270.           because they require data flow information that is computed
  271.           only when optimizing.  If you don't specify `-O', you
  272.           simply won't get these warnings.
  273.  
  274.           These warnings occur only for variables that are candidates
  275.           for register allocation.  Therefore, they do not occur for
  276.           a variable that is declared `volatile', or whose address is
  277.           taken, or whose size is other than 1, 2, 4 or 8 bytes. 
  278.           Also, they do not occur for structures, unions or arrays,
  279.           even when they are in registers.
  280.  
  281.           Note that there may be no warning about a variable that is
  282.           used only to compute a value that itself is never used,
  283.           because such computations may be deleted by data flow
  284.           analysis before the warnings are printed.
  285.  
  286.           These warnings are made optional because GNU CC is not
  287.           smart enough to see all the reasons why the code might be
  288.           correct despite appearing to have an error.  Here is one
  289.           example of how this can happen:
  290.  
  291.                {
  292.                  int x;
  293.                  switch (y)
  294.                    {
  295.                    case 1: x = 1;
  296.                      break;
  297.                    case 2: x = 4;
  298.                      break;
  299.                    case 3: x = 5;
  300.                    }
  301.                  foo (x);
  302.                }
  303.  
  304.           If the value of `y' is always 1, 2 or 3, then `x' is always
  305.           initialized, but GNU CC doesn't know this.  Here is another
  306.           common case:
  307.  
  308.                {
  309.                  int save_y;
  310.                  if (change_y) save_y = y, y = new_y;
  311.                  ...
  312.                  if (change_y) y = save_y;
  313.                }
  314.  
  315.           This has no bug because `save_y' is used only if it is set.
  316.  
  317.           Some spurious warnings can be avoided if you declare as
  318.           `volatile' all the functions you use that never return. 
  319.           *Note Function Attributes::.
  320.  
  321.         * A nonvolatile automatic variable might be changed by a call
  322.           to `longjmp'.  These warnings as well are possible only in
  323.           optimizing compilation.
  324.  
  325.           The compiler sees only the calls to `setjmp'.  It cannot
  326.           know where `longjmp' will be called; in fact, a signal
  327.           handler could call it at any point in the code.  As a
  328.           result, you may get a warning even when there is in fact no
  329.           problem because `longjmp' cannot in fact be called at the
  330.           place which would cause a problem.
  331.  
  332.         * A function can return either with or without a value. 
  333.           (Falling off the end of the function body is considered
  334.           returning without a value.)  For example, this function
  335.           would evoke such a warning:
  336.  
  337.                foo (a)
  338.                {
  339.                  if (a > 0)
  340.                    return a;
  341.                }
  342.  
  343.           Spurious warnings can occur because GNU CC does not realize
  344.           that certain functions (including `abort' and `longjmp')
  345.           will never return.
  346.  
  347.         * An expression-statement contains no side effects.
  348.  
  349.      In the future, other useful warnings may also be enabled by this
  350.      option.
  351.  
  352. `-Wimplicit'
  353.      Warn whenever a function is implicitly declared.
  354.  
  355. `-Wreturn-type'
  356.      Warn whenever a function is defined with a return-type that
  357.      defaults to `int'.  Also warn about any `return' statement with
  358.      no return-value in a function whose return-type is not `void'.
  359.  
  360. `-Wunused'
  361.      Warn whenever a local variable is unused aside from its
  362.      declaration, whenever a function is declared static but never
  363.      defined, and whenever a statement computes a result that is
  364.      explicitly not used.
  365.  
  366. `-Wswitch'
  367.      Warn whenever a `switch' statement has an index of enumeral type
  368.      and lacks a `case' for one or more of the named codes of that
  369.      enumeration.  (The presence of a `default' label prevents this
  370.      warning.)  `case' labels outside the enumeration range also
  371.      provoke warnings when this option is used.
  372.  
  373. `-Wcomment'
  374.      Warn whenever a comment-start sequence `/*' appears in a comment.
  375.  
  376. `-Wtrigraphs'
  377.      Warn if any trigraphs are encountered (assuming they are enabled).
  378.  
  379. `-Wall'
  380.      All of the above `-W' options combined.  These are all the
  381.      options which pertain to usage that we recommend avoiding and
  382.      that we believe is easy to avoid, even in conjunction with macros.
  383.  
  384.      The other `-W...' options below are not implied by `-Wall'
  385.      because certain kinds of useful macros are almost impossible to
  386.      write without causing those warnings.
  387.  
  388. `-Wshadow'
  389.      Warn whenever a local variable shadows another local variable.
  390.  
  391. `-Wid-clash-LEN'
  392.      Warn whenever two distinct identifiers match in the first LEN
  393.      characters.  This may help you prepare a program that will
  394.      compile with certain obsolete, brain-damaged compilers.
  395.  
  396. `-Wpointer-arith'
  397.      Warn about anything that depends on the "size of" a function
  398.      type or of `void'.  GNU C assigns these types a size of 1, for
  399.      convenience in calculations with `void *' pointers and pointers
  400.      to functions.
  401.  
  402. `-Wcast-qual'
  403.      Warn whenever a pointer is cast so as to remove a type qualifier
  404.      from the target type.  For example, warn if a `const char *' is
  405.      cast to an ordinary `char *'.
  406.  
  407. `-Wwrite-strings'
  408.      Give string constants the type `const char[LENGTH]' so that
  409.      copying the address of one into a non-`const' `char *' pointer
  410.      will get a warning.  These warnings will help you find at
  411.      compile time code that can try to write into a string constant,
  412.      but only if you have been very careful about using `const' in
  413.      declarations and prototypes.  Otherwise, it will just be a
  414.      nuisance; this is why we did not make `-Wall' request these
  415.      warnings.
  416.  
  417. `-p'
  418.      Generate extra code to write profile information suitable for
  419.      the analysis program `prof'.
  420.  
  421. `-pg'
  422.      Generate extra code to write profile information suitable for
  423.      the analysis program `gprof'.
  424.  
  425. `-a'
  426.      Generate extra code to write profile information for basic
  427.      blocks, which will record the number of times each basic block
  428.      is executed.  This data could be analyzed by a program like
  429.      `tcov'.  Note, however, that the format of the data is not what
  430.      `tcov' expects.  Eventually GNU `gprof' should be extended to
  431.      process this data.
  432.  
  433. `-lLIBRARY'
  434.      Search a standard list of directories for a library named
  435.      LIBRARY, which is actually a file named `libLIBRARY.a'.  The
  436.      linker uses this file as if it had been specified precisely by
  437.      name.
  438.  
  439.      The directories searched include several standard system
  440.      directories plus any that you specify with `-L'.
  441.  
  442.      Normally the files found this way are library files--archive
  443.      files whose members are object files.  The linker handles an
  444.      archive file by scanning through it for members which define
  445.      symbols that have so far been referenced but not defined.  But
  446.      if the file that is found is an ordinary object file, it is
  447.      linked in the usual fashion.  The only difference between using
  448.      an `-l' option and specifying a file name is that `-l' searches
  449.      several directories.
  450.  
  451. `-LDIR'
  452.      Add directory DIR to the list of directories to be searched for
  453.      `-l'.
  454.  
  455. `-nostdlib'
  456.      Don't use the standard system libraries and startup files when
  457.      linking.  Only the files you specify will be passed to the linker.
  458.  
  459. `-mMACHINESPEC'
  460.      Machine-dependent option specifying something about the type of
  461.      target machine.  These options are defined by the macro
  462.      `TARGET_SWITCHES' in the machine description.  The default for
  463.      the options is also defined by that macro, which enables you to
  464.      change the defaults.
  465.  
  466.      These are the `-m' options defined in the 68000 machine
  467.      description:
  468.  
  469.     `-m68020'
  470.     `-mc68020'
  471.           Generate output for a 68020 (rather than a 68000).  This is
  472.           the default if you use the unmodified sources.
  473.  
  474.     `-m68000'
  475.     `-mc68000'
  476.           Generate output for a 68000 (rather than a 68020).
  477.  
  478.     `-m68881'
  479.           Generate output containing 68881 instructions for floating
  480.           point.  This is the default if you use the unmodified
  481.           sources.
  482.  
  483.     `-mfpa'
  484.           Generate output containing Sun FPA instructions for
  485.           floating point.
  486.  
  487.     `-msoft-float'
  488.           Generate output containing library calls for floating point.
  489.  
  490.     `-mshort'
  491.           Consider type `int' to be 16 bits wide, like `short int'.
  492.  
  493.     `-mnobitfield'
  494.           Do not use the bit-field instructions.  `-m68000' implies
  495.           `-mnobitfield'.
  496.  
  497.     `-mbitfield'
  498.           Do use the bit-field instructions.  `-m68020' implies
  499.           `-mbitfield'.  This is the default if you use the
  500.           unmodified sources.
  501.  
  502.     `-mrtd'
  503.           Use a different function-calling convention, in which
  504.           functions that take a fixed number of arguments return with
  505.           the `rtd' instruction, which pops their arguments while
  506.           returning.  This saves one instruction in the caller since
  507.           there is no need to pop the arguments there.
  508.  
  509.           This calling convention is incompatible with the one
  510.           normally used on Unix, so you cannot use it if you need to
  511.           call libraries compiled with the Unix compiler.
  512.  
  513.           Also, you must provide function prototypes for all
  514.           functions that take variable numbers of arguments
  515.           (including `printf'); otherwise incorrect code will be
  516.           generated for calls to those functions.
  517.  
  518.           In addition, seriously incorrect code will result if you
  519.           call a function with too many arguments.  (Normally, extra
  520.           arguments are harmlessly ignored.)
  521.  
  522.           The `rtd' instruction is supported by the 68010 and 68020
  523.           processors, but not by the 68000.
  524.  
  525.      These `-m' options are defined in the Vax machine description:
  526.  
  527.     `-munix'
  528.           Do not output certain jump instructions (`aobleq' and so
  529.           on) that the Unix assembler for the Vax cannot handle
  530.           across long ranges.
  531.  
  532.     `-mgnu'
  533.           Do output those jump instructions, on the assumption that
  534.           you will assemble with the GNU assembler.
  535.  
  536.     `-mg'
  537.           Output code for g-format floating point numbers instead of
  538.           d-format.
  539.  
  540.      These `-m' switches are supported on the Sparc:
  541.  
  542.     `-mfpu'
  543.           Generate output containing floating point instructions. 
  544.           This is the default if you use the unmodified sources.
  545.  
  546.     `-mno-epilogue'
  547.           Generate separate return instructions for `return'
  548.           statements.  This has both advantages and disadvantages; I
  549.           don't recall what they are.
  550.  
  551.      These `-m' options are defined in the Convex machine description:
  552.  
  553.     `-mc1'
  554.           Generate output for a C1.  This is the default when the
  555.           compiler is configured for a C1.
  556.  
  557.     `-mc2'
  558.           Generate output for a C2.  This is the default when the
  559.           compiler is configured for a C2.
  560.  
  561.     `-margcount'
  562.           Generate code which puts an argument count in the word
  563.           preceding each argument list.  Some nonportable Convex and
  564.           Vax programs need this word.  (Debuggers don't; this info
  565.           is in the symbol table.)
  566.  
  567.     `-mnoargcount'
  568.           Omit the argument count word.  This is the default if you
  569.           use the unmodified sources.
  570.  
  571. `-fFLAG'
  572.      Specify machine-independent flags.  Most flags have both
  573.      positive and negative forms; the negative form of `-ffoo' would
  574.      be `-fno-foo'.  In the table below, only one of the forms is
  575.      listed--the one which is not the default.  You can figure out
  576.      the other form by either removing `no-' or adding it.
  577.  
  578.     `-fpcc-struct-return'
  579.           Use the same convention for returning `struct' and `union'
  580.           values that is used by the usual C compiler on your system.
  581.           This convention is less efficient for small structures, and
  582.           on many machines it fails to be reentrant; but it has the
  583.           advantage of allowing intercallability between GCC-compiled
  584.           code and PCC-compiled code.
  585.  
  586.     `-ffloat-store'
  587.           Do not store floating-point variables in registers.  This
  588.           prevents undesirable excess precision on machines such as
  589.           the 68000 where the floating registers (of the 68881) keep
  590.           more precision than a `double' is supposed to have.
  591.  
  592.           For most programs, the excess precision does only good, but
  593.           a few programs rely on the precise definition of IEEE
  594.           floating point.  Use `-ffloat-store' for such programs.
  595.  
  596.     `-fno-asm'
  597.           Do not recognize `asm', `inline' or `typeof' as a keyword. 
  598.           These words may then be used as identifiers.  You can use
  599.           `__asm__', `__inline__' and `__typeof__' instead.
  600.  
  601.     `-fno-defer-pop'
  602.           Always pop the arguments to each function call as soon as
  603.           that function returns.  Normally the compiler (when
  604.           optimizing) lets arguments accumulate on the stack for
  605.           several function calls and pops them all at once.
  606.  
  607.     `-fstrength-reduce'
  608.           Perform the optimizations of loop strength reduction and
  609.           elimination of iteration variables.
  610.  
  611.     `-fcombine-regs'
  612.           Allow the combine pass to combine an instruction that
  613.           copies one register into another.  This might or might not
  614.           produce better code when used in addition to `-O'.  I am
  615.           interested in hearing about the difference this makes.
  616.  
  617.     `-fforce-mem'
  618.           Force memory operands to be copied into registers before
  619.           doing arithmetic on them.  This may produce better code by
  620.           making all memory references potential common
  621.           subexpressions.  When they are not common subexpressions,
  622.           instruction combination should eliminate the separate
  623.           register-load.  I am interested in hearing about the
  624.           difference this makes.
  625.  
  626.     `-fforce-addr'
  627.           Force memory address constants to be copied into registers
  628.           before doing arithmetic on them.  This may produce better
  629.           code just as `-fforce-mem' may.  I am interested in hearing
  630.           about the difference this makes.
  631.  
  632.     `-fomit-frame-pointer'
  633.           Don't keep the frame pointer in a register for functions
  634.           that don't need one.  This avoids the instructions to save,
  635.           set up and restore frame pointers; it also makes an extra
  636.           register available in many functions.  *It also makes
  637.           debugging impossible.*
  638.  
  639.           On some machines, such as the Vax, this flag has no effect,
  640.           because the standard calling sequence automatically handles
  641.           the frame pointer and nothing is saved by pretending it
  642.           doesn't exist.  The machine-description macro
  643.           `FRAME_POINTER_REQUIRED' controls whether a target machine
  644.           supports this flag.  *Note Registers::.
  645.  
  646.     `-finline-functions'
  647.           Integrate all simple functions into their callers.  The
  648.           compiler heuristically decides which functions are simple
  649.           enough to be worth integrating in this way.
  650.  
  651.           If all calls to a given function are integrated, and the
  652.           function is declared `static', then the function is
  653.           normally not output as assembler code in its own right.
  654.  
  655.     `-fcaller-saves'
  656.           Enable values to be allocated in registers that will be
  657.           clobbered by function calls, by emitting extra instructions
  658.           to save and restore the registers around such calls.  Such
  659.           allocation is done only when it seems to result in better
  660.           code than would otherwise be produced.
  661.  
  662.           This option is enabled by default on certain machines,
  663.           usually those which have no call-preserved registers to use
  664.           instead.
  665.  
  666.     `-fkeep-inline-functions'
  667.           Even if all calls to a given function are integrated, and
  668.           the function is declared `static', nevertheless output a
  669.           separate run-time callable version of the function.
  670.  
  671.     `-fwritable-strings'
  672.           Store string constants in the writable data segment and
  673.           don't uniquize them.  This is for compatibility with old
  674.           programs which assume they can write into string constants.
  675.           `-traditional' also has this effect.
  676.  
  677.           Writing into string constants is a very bad idea;
  678.           "constants" should be constant.
  679.  
  680.     `-fcond-mismatch'
  681.           Allow conditional expressions with mismatched types in the
  682.           second and third arguments.  The value of such an
  683.           expression is void.
  684.  
  685.     `-fno-function-cse'
  686.           Do not put function addresses in registers; make each
  687.           instruction that calls a constant function contain the
  688.           function's address explicitly.
  689.  
  690.           This option results in less efficient code, but some
  691.           strange hacks that alter the assembler output may be
  692.           confused by the optimizations performed when this option is
  693.           not used.
  694.  
  695.     `-fvolatile'
  696.           Consider all memory references through pointers to be
  697.           volatile.
  698.  
  699.     `-fshared-data'
  700.           Requests that the data and non-`const' variables of this
  701.           compilation be shared data rather than private data.  The
  702.           distinction makes sense only on certain operating systems,
  703.           where shared data is shared between processes running the
  704.           same program, while private data exists in one copy per
  705.           process.
  706.  
  707.     `-funsigned-char'
  708.           Let the type `char' be the unsigned, like `unsigned char'.
  709.  
  710.           Each kind of machine has a default for what `char' should
  711.           be.  It is either like `unsigned char' by default or like
  712.           `signed char' by default.  (Actually, at present, the
  713.           default is always signed.)
  714.  
  715.           The type `char' is always a distinct type from either
  716.           `signed char' or `unsigned char', even though its behavior
  717.           is always just like one of those two.
  718.  
  719.           Note that this is equivalent to `-fno-signed-char', which
  720.           is the negative form of `-fsigned-char'.
  721.  
  722.     `-fsigned-char'
  723.           Let the type `char' be signed, like `signed char'.
  724.  
  725.           Note that this is equivalent to `-fno-unsigned-char', which
  726.           is the negative form of `-funsigned-char'.
  727.  
  728.     `-fdelayed-branch'
  729.           If supported for the target machine, attempt to reorder
  730.           instructions to exploit instruction slots available after
  731.           delayed branch instructions.
  732.  
  733.     `-ffixed-REG'
  734.           Treat the register named REG as a fixed register; generated
  735.           code should never refer to it (except perhaps as a stack
  736.           pointer, frame pointer or in some other fixed role).
  737.  
  738.           REG must be the name of a register.  The register names
  739.           accepted are machine-specific and are defined in the
  740.           `REGISTER_NAMES' macro in the machine description macro file.
  741.  
  742.           This flag does not have a negative form, because it
  743.           specifies a three-way choice.
  744.  
  745.     `-fcall-used-REG'
  746.           Treat the register named REG as an allocatable register
  747.           that is clobbered by function calls.  It may be allocated
  748.           for temporaries or variables that do not live across a call.
  749.           Functions compiled this way will not save and restore the
  750.           register REG.
  751.  
  752.           Use of this flag for a register that has a fixed pervasive
  753.           role in the machine's execution model, such as the stack
  754.           pointer or frame pointer, will produce disastrous results.
  755.  
  756.           This flag does not have a negative form, because it
  757.           specifies a three-way choice.
  758.  
  759.     `-fcall-saved-REG'
  760.           Treat the register named REG as an allocatable register
  761.           saved by functions.  It may be allocated even for
  762.           temporaries or variables that live across a call. 
  763.           Functions compiled this way will save and restore the
  764.           register REG if they use it.
  765.  
  766.           Use of this flag for a register that has a fixed pervasive
  767.           role in the machine's execution model, such as the stack
  768.           pointer or frame pointer, will produce disastrous results.
  769.  
  770.           A different sort of disaster will result from the use of
  771.           this flag for a register in which function values may be
  772.           returned.
  773.  
  774.           This flag does not have a negative form, because it
  775.           specifies a three-way choice.
  776.  
  777. `-dLETTERS'
  778.      Says to make debugging dumps at times specified by LETTERS. 
  779.      Here are the possible letters:
  780.  
  781.     `r'
  782.           Dump after RTL generation.
  783.  
  784.     `j'
  785.           Dump after first jump optimization.
  786.  
  787.     `s'
  788.           Dump after CSE (including the jump optimization that
  789.           sometimes follows CSE).
  790.  
  791.     `L'
  792.           Dump after loop optimization.
  793.  
  794.     `f'
  795.           Dump after flow analysis.
  796.  
  797.     `c'
  798.           Dump after instruction combination.
  799.  
  800.     `l'
  801.           Dump after local register allocation.
  802.  
  803.     `g'
  804.           Dump after global register allocation.
  805.  
  806.     `d'
  807.           Dump after delayed branch scheduling.
  808.  
  809.     `J'
  810.           Dump after last jump optimization.
  811.  
  812.     `m'
  813.           Print statistics on memory usage, at the end of the run.
  814.  
  815. `-pedantic'
  816.      Issue all the warnings demanded by strict ANSI standard C;
  817.      reject all programs that use forbidden extensions.
  818.  
  819.      Valid ANSI standard C programs should compile properly with or
  820.      without this option (though a rare few will require `-ansi'). 
  821.      However, without this option, certain GNU extensions and
  822.      traditional C features are supported as well.  With this option,
  823.      they are rejected.  There is no reason to use this option; it
  824.      exists only to satisfy pedants.
  825.  
  826.      `-pedantic' does not cause warning messages for use of the
  827.      alternate keywords whose names begin and end with `__'.  *Note
  828.      Alternate Keywords::.
  829.  
  830. `-static'
  831.      On Suns running version 4, this prevents linking with the shared
  832.      libraries.  (`-g' has the same effect.)
  833.  
  834. These options control the C preprocessor, which is run on each C
  835. source file before actual compilation.  If you use the `-E' option,
  836. nothing is done except C preprocessing.  Some of these options make
  837. sense only together with `-E' because they request preprocessor
  838. output that is not suitable for actual compilation.
  839.  
  840. `-C'
  841.      Tell the preprocessor not to discard comments.  Used with the
  842.      `-E' option.
  843.  
  844. `-IDIR'
  845.      Search directory DIR for include files.
  846.  
  847. `-I-'
  848.      Any directories specified with `-I' options before the `-I-'
  849.      option are searched only for the case of `#include "FILE"'; they
  850.      are not searched for `#include <FILE>'.
  851.  
  852.      If additional directories are specified with `-I' options after
  853.      the `-I-', these directories are searched for all `#include'
  854.      directives.  (Ordinarily *all* `-I' directories are used this
  855.      way.)
  856.  
  857.      In addition, the `-I-' option inhibits the use of the current
  858.      directory (where the current input file came from) as the first
  859.      search directory for `#include "FILE"'.  There is no way to
  860.      override this effect of `-I-'.  With `-I.' you can specify
  861.      searching the directory which was current when the compiler was
  862.      invoked.  That is not exactly the same as what the preprocessor
  863.      does by default, but it is often satisfactory.
  864.  
  865.      `-I-' does not inhibit the use of the standard system
  866.      directories for header files.  Thus, `-I-' and `-nostdinc' are
  867.      independent.
  868.  
  869. `-i FILE'
  870.      Process FILE as input, discarding the resulting output, before
  871.      processing the regular input file.  Because the output generated
  872.      from FILE is discarded, the only effect of `-i FILE' is to make
  873.      the macros defined in FILE available for use in the main input.
  874.  
  875. `-nostdinc'
  876.      Do not search the standard system directories for header files. 
  877.      Only the directories you have specified with `-I' options (and
  878.      the current directory, if appropriate) are searched.
  879.  
  880.      Between `-nostdinc' and `-I-', you can eliminate all directories
  881.      from the search path except those you specify.
  882.  
  883. `-M'
  884.      Tell the preprocessor to output a rule suitable for `make'
  885.      describing the dependencies of each object file.  For each
  886.      source file, the preprocessor outputs one `make'-rule whose
  887.      target is the object file name for that source file and whose
  888.      dependencies are all the files `#include'd in it.  This rule may
  889.      be a single line or may be continued with `\'-newline if it is
  890.      long.
  891.  
  892.      `-M' implies `-E'.
  893.  
  894. `-MM'
  895.      Like `-M' but the output mentions only the user-header files
  896.      included with `#include "FILE"'.  System header files included
  897.      with `#include <FILE>' are omitted.
  898.  
  899.      `-MM' implies `-E'.
  900.  
  901. `-DMACRO'
  902.      Define macro MACRO with the  string `1' as its definition.
  903.  
  904. `-DMACRO=DEFN'
  905.      Define macro MACRO as DEFN.
  906.  
  907. `-UMACRO'
  908.      Undefine macro MACRO.
  909.  
  910. `-trigraphs'
  911.      Support ANSI C trigraphs.  You don't want to know about this
  912.      brain-damage.  The `-ansi' option also has this effect.
  913.  
  914.  
  915.